(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([ [ 164 ], {
    474: function(e, c, t) {},
    475: function(e, c, t) {},
    476: function(e, c, t) {},
    477: function(e, c, t) {},
    478: function(e, c, t) {},
    479: function(e, c, t) {},
    480: function(e, c, t) {},
    481: function(e, c, t) {},
    482: function(e, c, t) {},
    483: function(e, c, t) {},
    485: function(e, c, t) {},
    685: function(e, c, t) {
        "use strict";
        t.r(c);
        var a, s = t(18), n = t(43), i = t(63), r = t(1), l = t(9), j = (t(474), t(475), 
        t(2)), o = t(0), d = function() {
            return Object(o["jsxs"])(r["View"], {
                className: "card hxz-card",
                onClick: function() {
                    return Object(j["showToast"])({
                        title: "敬请期待",
                        icon: "none"
                    });
                },
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "title",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "logo",
                        src: "http://cdn.meizhuan.cn/pic-go/logo-hxz-20211220.png"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "label",
                        children: "花小猪打车"
                    }) ]
                }), Object(o["jsx"])(r["View"], {
                    className: "content",
                    children: Object(o["jsx"])(r["Text"], {
                        className: "big purple",
                        children: "敬请期待"
                    })
                }), Object(o["jsx"])(r["View"], {
                    className: "btn",
                    children: "敬请期待"
                }), Object(o["jsx"])(r["View"], {
                    className: "corner",
                    children: "专享优惠"
                }), Object(o["jsx"])(r["Image"], {
                    className: "shadow",
                    src: "http://cdn.meizhuan.cn/pic-go/shadow-hxz-20211220.png"
                }), Object(o["jsx"])(r["Image"], {
                    className: "car",
                    src: "http://cdn.meizhuan.cn/pic-go/car-hxz-20211220.png"
                }) ]
            });
        }, b = t(16), h = t(8), m = function() {
            Object(j["showLoading"])({
                title: "正在加载",
                mask: !0
            }), h["g"].getLink({
                type: 2,
                needMini: 1
            }).then(function(e) {
                return e.data;
            }).then(function(e) {
                if ("0" === e.code) Object(j["hideLoading"])(), Object(j["navigateToMiniProgram"])({
                    path: e.url,
                    appId: b["e"].DIDI
                }); else {
                    var c = "DDAction.getLink: ".concat(e.msg);
                    Object(j["showToast"])({
                        title: c,
                        icon: "none"
                    });
                }
            });
        }, u = function() {
            Object(j["showLoading"])({
                title: "正在加载",
                mask: !0
            }), h["S"].ddDelayShowQuan().then(function(e) {
                return e.data;
            }).then(function(e) {
                if (0 !== e.code) if (Object(j["hideLoading"])(), -10 !== e.code) {
                    var c = "MpUserAction.ddDelayShowQuan: ".concat(e.msg);
                    Object(j["showToast"])({
                        title: c,
                        icon: "none"
                    });
                } else Object(j["showModal"])({
                    title: "提示",
                    content: "新人券生成中…\r\n请1小时后再来领取！",
                    showCancel: !1
                }); else m();
            });
        }, O = function() {
            var e = Object(n["b"])(), c = e.openLogin, t = Object(l["d"])(function(e) {
                return e.user;
            }), a = t.loginStatus, s = Object(l["d"])(function(e) {
                return e.weapp.mp;
            }), i = s.showDdDc, j = s.ddDelayShowQuan;
            return i ? a ? j ? Object(o["jsxs"])(r["View"], {
                className: "card didi-card",
                onClick: u,
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "title",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "logo",
                        src: "http://cdn.meizhuan.cn/pic-go/logo-didi-20211220.png"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "label",
                        children: "滴滴打车"
                    }) ]
                }), Object(o["jsxs"])(r["View"], {
                    className: "content",
                    children: [ Object(o["jsx"])(r["Text"], {
                        className: "big origin",
                        children: "80元"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "small gray",
                        children: "券包"
                    }) ]
                }), Object(o["jsx"])(r["View"], {
                    className: "btn",
                    children: "领券打车"
                }), Object(o["jsx"])(r["View"], {
                    className: "corner",
                    children: "天天8折"
                }), Object(o["jsx"])(r["Image"], {
                    className: "shadow",
                    src: "http://cdn.meizhuan.cn/pic-go/shadow-didi-20211220.png"
                }), Object(o["jsx"])(r["Image"], {
                    className: "car",
                    src: "http://cdn.meizhuan.cn/pic-go/car-didi-20211220.png"
                }) ]
            }) : Object(o["jsxs"])(r["View"], {
                className: "card didi-card",
                onClick: m,
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "title",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "logo",
                        src: "http://cdn.meizhuan.cn/pic-go/logo-didi-20211220.png"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "label",
                        children: "滴滴打车"
                    }) ]
                }), Object(o["jsxs"])(r["View"], {
                    className: "content",
                    children: [ Object(o["jsx"])(r["Text"], {
                        className: "big origin",
                        children: "80元"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "small gray",
                        children: "券包"
                    }) ]
                }), Object(o["jsx"])(r["View"], {
                    className: "btn",
                    children: "领券打车"
                }), Object(o["jsx"])(r["View"], {
                    className: "corner",
                    children: "天天8折"
                }), Object(o["jsx"])(r["Image"], {
                    className: "shadow",
                    src: "http://cdn.meizhuan.cn/pic-go/shadow-didi-20211220.png"
                }), Object(o["jsx"])(r["Image"], {
                    className: "car",
                    src: "http://cdn.meizhuan.cn/pic-go/car-didi-20211220.png"
                }) ]
            }) : Object(o["jsxs"])(r["View"], {
                className: "card didi-card",
                onClick: c,
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "title",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "logo",
                        src: "http://cdn.meizhuan.cn/pic-go/logo-didi-20211220.png"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "label",
                        children: "滴滴打车"
                    }) ]
                }), Object(o["jsxs"])(r["View"], {
                    className: "content",
                    children: [ Object(o["jsx"])(r["Text"], {
                        className: "big origin",
                        children: "80元"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "small gray",
                        children: "券包"
                    }) ]
                }), Object(o["jsx"])(r["View"], {
                    className: "btn",
                    children: "领券打车"
                }), Object(o["jsx"])(r["View"], {
                    className: "corner",
                    children: "天天8折"
                }), Object(o["jsx"])(r["Image"], {
                    className: "shadow",
                    src: "http://cdn.meizhuan.cn/pic-go/shadow-didi-20211220.png"
                }), Object(o["jsx"])(r["Image"], {
                    className: "car",
                    src: "http://cdn.meizhuan.cn/pic-go/car-didi-20211220.png"
                }) ]
            }) : null;
        }, p = function() {
            return Object(o["jsxs"])(r["View"], {
                className: "more-cards",
                children: [ Object(o["jsx"])(O, {}), Object(o["jsx"])(d, {}) ]
            });
        }, x = t(10), g = t(3), w = (t(476), t(477), t(13)), N = (t(478), function() {
            var e = Object(g["useState"])(!1), c = Object(x["a"])(e, 2), t = c[0], a = c[1];
            return Object(o["jsxs"])(o["Fragment"], {
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "text-button-group",
                    children: [ Object(o["jsxs"])(r["Navigator"], {
                        className: "share-wrapper",
                        url: "/packageE/poster/invite/index",
                        children: [ Object(o["jsx"])(r["Text"], {
                            className: "icon-font iconfont-circle-share"
                        }), Object(o["jsx"])(r["Text"], {
                            className: "share-wrapper-label",
                            children: "分享好友"
                        }) ]
                    }), Object(o["jsxs"])(r["View"], {
                        className: "share-wrapper",
                        onClick: function() {
                            return a(!0);
                        },
                        children: [ Object(o["jsx"])(r["Text"], {
                            className: "icon-font iconfont-fail"
                        }), Object(o["jsx"])(r["Text"], {
                            className: "share-wrapper-label",
                            children: "领券规则"
                        }) ]
                    }) ]
                }), Object(o["jsx"])(w["i"], {
                    title: "领券规则",
                    isOpened: t,
                    onClose: function() {
                        return a(!1);
                    },
                    children: Object(o["jsx"])(r["View"], {
                        className: "at-article",
                        children: Object(o["jsxs"])(r["View"], {
                            className: "at-article__content",
                            children: [ Object(o["jsxs"])(r["View"], {
                                className: "at-article__section",
                                children: [ Object(o["jsx"])(r["View"], {
                                    className: "at-article__h3 bold",
                                    children: "1. 新用户可领取："
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 1张10元无门槛券"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 1张5元立减券"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 2张8折券(满50可用)"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 等共计100元优惠券"
                                }) ]
                            }), Object(o["jsxs"])(r["View"], {
                                className: "at-article__section",
                                children: [ Object(o["jsx"])(r["View"], {
                                    className: "at-article__h3 bold",
                                    children: "2. 老用户可领取："
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 2张88折无门槛券"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 2张8折券(满50可用)"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 4张85折券(满30可用)"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "at-article__p",
                                    children: "· 等共计100元优惠券"
                                }) ]
                            }), Object(o["jsx"])(r["View"], {
                                className: "at-article__section",
                                children: Object(o["jsx"])(r["View"], {
                                    className: "at-article__h3",
                                    children: "3. 老用户每月可领两次券包，每月1号、16号刷新后领取；"
                                })
                            }), Object(o["jsx"])(r["View"], {
                                className: "at-article__section",
                                children: Object(o["jsx"])(r["View"], {
                                    className: "at-article__h3",
                                    children: "4. 以上规则仅供参考，具体以高德打车领券页面的活动规则为准。"
                                })
                            }) ]
                        })
                    })
                }) ]
            });
        }), f = (t(479), function() {
            return Object(o["jsxs"])(r["View"], {
                className: "coupon-card-header",
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "step",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/amap-1-20211220.png",
                        mode: "widthFix"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "span",
                        children: "先领券"
                    }) ]
                }), Object(o["jsx"])(r["Image"], {
                    className: "link",
                    src: "https://mpstatic.qingting123.com/img/waimai/9.png",
                    mode: "widthFix"
                }), Object(o["jsxs"])(r["View"], {
                    className: "step",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/amap-2-20211220.png",
                        mode: "widthFix"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "span",
                        children: "再打车"
                    }) ]
                }), Object(o["jsx"])(r["Image"], {
                    className: "link",
                    src: "https://mpstatic.qingting123.com/img/waimai/9.png",
                    mode: "widthFix"
                }), Object(o["jsxs"])(r["View"], {
                    className: "step",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/amap-3-20211220.png",
                        mode: "widthFix"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "span",
                        children: "享优惠"
                    }) ]
                }) ]
            });
        }), V = function() {
            var e = Object(n["b"])(), c = e.openLogin, t = Object(l["d"])(function(e) {
                return e.user;
            }), a = t.loginStatus, s = Object(g["useState"])(""), i = Object(x["a"])(s, 2), d = i[0], m = i[1];
            return Object(g["useEffect"])(function() {
                a && h["G"].fetchWithMp({
                    goodsTbId: 10
                }).then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if ("0" !== e.code) {
                        var c = "AgentAction.fetchWithMp: ".concat(e.msg);
                        throw Object(j["showToast"])({
                            title: c,
                            icon: "none"
                        }), new Error(e.msg);
                    }
                    return e.taokerPidId;
                }).then(function(e) {
                    h["j"].getLink({
                        pidId: e
                    }).then(function(e) {
                        return e.data;
                    }).then(function(e) {
                        if ("0" === e.code) m(e.weappLink); else {
                            var c = "GaodeAction.getLink: ".concat(e.msg);
                            Object(j["showToast"])({
                                title: c,
                                icon: "none"
                            });
                        }
                    });
                });
            }, [ a ]), Object(o["jsxs"])(r["View"], {
                className: "coupon-card",
                children: [ Object(o["jsx"])(f, {}), Object(o["jsxs"])(r["View"], {
                    className: "coupon-card-content",
                    children: [ Object(o["jsx"])(r["View"], {
                        className: "qrcode-wrapper",
                        children: Object(o["jsx"])(r["Image"], {
                            className: "qrcode",
                            src: "http://cdn.meizhuan.cn/pic-go/logo-20211218.png",
                            mode: "widthFix"
                        })
                    }), a ? d ? Object(o["jsx"])(r["View"], {
                        className: "btn-wrapper",
                        children: Object(o["jsxs"])(r["Navigator"], {
                            className: "btn",
                            path: d,
                            appId: b["e"].GDDC,
                            target: "miniProgram",
                            children: [ Object(o["jsx"])(r["Text"], {
                                className: "label",
                                children: "领券打车"
                            }), Object(o["jsx"])(r["View"], {
                                className: "tag",
                                children: "新人减10"
                            }) ]
                        })
                    }) : Object(o["jsx"])(r["View"], {
                        className: "btn-wrapper",
                        children: Object(o["jsxs"])(r["View"], {
                            className: "btn",
                            children: [ Object(o["jsx"])(r["Text"], {
                                className: "label",
                                children: "领券打车"
                            }), Object(o["jsx"])(r["View"], {
                                className: "tag",
                                children: "新人减10"
                            }) ]
                        })
                    }) : Object(o["jsx"])(r["View"], {
                        className: "btn-wrapper",
                        children: Object(o["jsxs"])(r["View"], {
                            className: "btn",
                            onClick: c,
                            children: [ Object(o["jsx"])(r["Text"], {
                                className: "label",
                                children: "领券打车"
                            }), Object(o["jsx"])(r["View"], {
                                className: "tag",
                                children: "新人减10"
                            }) ]
                        })
                    }), Object(o["jsx"])(N, {}) ]
                }) ]
            });
        }, I = (t(480), function() {
            return Object(o["jsx"])(r["Image"], {
                className: "static-banner",
                src: "http://cdn.meizhuan.cn/pic-go/banner-20211218.jpg",
                mode: "widthFix"
            });
        }), T = t(64);
        (function(e) {
            e["DIDI"] = "didi", e["AMAP"] = "amap";
        })(a || (a = {}));
        var v = Object(g["createContext"])({
            activeTabKey: a.DIDI,
            setActiveTab: function(e) {}
        }), D = function() {
            return Object(g["useContext"])(v);
        }, k = function(e) {
            var c = e.children, t = Object(l["c"])(), s = Object(j["useRouter"])(), n = s.params, i = s.path, r = Object(l["d"])(function(e) {
                return e.switchTab;
            }), d = r.routers, b = Object(g["useState"])(function() {
                if (n.tabKey) {
                    if (n.tabKey === a.DIDI) return n.tabKey;
                    if (n.tabKey === a.AMAP) return n.tabKey;
                }
                var e = d.find(function(e) {
                    return e.path === i;
                });
                if (e && e.params.tabKey) {
                    if (e.params.tabKey === a.DIDI) return t(Object(T["a"])(i)), e.params.tabKey;
                    if (e.params.tabKey === a.AMAP) return t(Object(T["a"])(i)), e.params.tabKey;
                }
                return a.DIDI;
            }), h = Object(x["a"])(b, 2), m = h[0], u = h[1], O = Object(g["useCallback"])(function(e) {
                return u(e);
            }, []);
            return Object(j["useDidShow"])(function() {
                var e = d.find(function(e) {
                    return e.path === i;
                });
                e && e.params.tabKey && (O(e.params.tabKey), t(Object(T["a"])(i)));
            }), Object(o["jsx"])(v.Provider, {
                value: {
                    activeTabKey: m,
                    setActiveTab: O
                },
                children: c
            });
        }, y = function() {
            var e = Object(l["d"])(function(e) {
                return e.weapp.mp;
            }), c = e.showGdDc, t = D(), s = t.activeTabKey;
            return c ? s !== a.AMAP ? null : Object(o["jsxs"])(r["View"], {
                className: "amap",
                children: [ Object(o["jsx"])(I, {}), Object(o["jsx"])(V, {}), Object(o["jsx"])(p, {}) ]
            }) : null;
        }, _ = (t(481), t(482), function(e) {
            Object(j["showLoading"])({
                title: "加载中",
                mask: !0
            });
            var c = {
                type: e,
                needMini: 0
            };
            h["g"].getLink(c).then(function(e) {
                return e.data;
            }).then(function(c) {
                if ("0" === c.code) Object(j["hideLoading"])(), 1 !== e ? 3 !== e || Object(j["navigateToMiniProgram"])({
                    appId: b["e"].DIDI,
                    path: c.url
                }) : Object(j["navigateToMiniProgram"])({
                    appId: b["e"].DDJY,
                    path: c.url
                }); else {
                    var t = "DDAction.getLink: ".concat(c.msg);
                    Object(j["showToast"])({
                        title: t,
                        icon: "none"
                    });
                }
            });
        }), C = function() {
            var e = Object(n["b"])(), c = e.openLogin, t = Object(l["d"])(function(e) {
                return e.weapp.mp;
            }), a = t.showDdJy, s = Object(l["d"])(function(e) {
                return e.user;
            }), i = s.loginStatus;
            return Object(o["jsxs"])(r["View"], {
                className: "coupon-cards",
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "card-item",
                    onClick: i ? function() {
                        return _(3);
                    } : c,
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "item-logo ddhy",
                        src: "http://cdn.meizhuan.cn/pic-go/ddhy-20210925.png"
                    }), Object(o["jsxs"])(r["View"], {
                        className: "item-desc",
                        children: [ Object(o["jsx"])(r["Text"], {
                            className: "number",
                            children: "15"
                        }), Object(o["jsx"])(r["Text"], {
                            className: "label",
                            children: "元最高立减"
                        }) ]
                    }), Object(o["jsx"])(r["View"], {
                        className: "item-btn",
                        children: "领券打车"
                    }), Object(o["jsx"])(r["Image"], {
                        className: "item-picture",
                        src: "http://cdn.meizhuan.cn/pic-go/car-20210925.png"
                    }) ]
                }), a ? Object(o["jsxs"])(r["View"], {
                    className: "card-item",
                    onClick: i ? function() {
                        return _(1);
                    } : c,
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "item-logo ddjy",
                        src: "http://cdn.meizhuan.cn/pic-go/ddjy-20210925.png"
                    }), Object(o["jsxs"])(r["View"], {
                        className: "item-desc",
                        children: [ Object(o["jsx"])(r["Text"], {
                            className: "number",
                            children: "20"
                        }), Object(o["jsx"])(r["Text"], {
                            className: "label",
                            children: "元新人立减"
                        }) ]
                    }), Object(o["jsx"])(r["View"], {
                        className: "item-btn",
                        children: "领券加油"
                    }), Object(o["jsx"])(r["Image"], {
                        className: "item-picture",
                        src: "http://cdn.meizhuan.cn/pic-go/oil-20210925.png"
                    }) ]
                }) : null ]
            });
        }, z = (t(483), function() {
            return Object(o["jsxs"])(r["View"], {
                className: "wm-coupon-header",
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "step",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/didi-1-20211220.png",
                        mode: "widthFix"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "span",
                        children: "先领券"
                    }) ]
                }), Object(o["jsx"])(r["Image"], {
                    className: "link",
                    src: "https://mpstatic.qingting123.com/img/waimai/9.png",
                    mode: "widthFix"
                }), Object(o["jsxs"])(r["View"], {
                    className: "step",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/didi-2-20211220.png",
                        mode: "widthFix"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "span",
                        children: "再打车"
                    }) ]
                }), Object(o["jsx"])(r["Image"], {
                    className: "link",
                    src: "https://mpstatic.qingting123.com/img/waimai/9.png",
                    mode: "widthFix"
                }), Object(o["jsxs"])(r["View"], {
                    className: "step",
                    children: [ Object(o["jsx"])(r["Image"], {
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/didi-3-20211220.png",
                        mode: "widthFix"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "span",
                        children: "享优惠"
                    }) ]
                }) ]
            });
        }), S = t(48), A = t(49), M = function(e) {
            var c = e.weappImgUrl, t = Object(g["useState"])({}), a = Object(x["a"])(t, 2), s = a[0], n = a[1], i = Object(g["useState"])(!1), l = Object(x["a"])(i, 2), d = l[0], b = l[1], m = Object(g["useState"])(""), u = Object(x["a"])(m, 2), O = u[0], p = u[1], w = Object(g["useState"])(!1), N = Object(x["a"])(w, 2), f = N[0], V = N[1], I = Object(g["useCallback"])(function() {
                return V(!1);
            }, []), T = Object(g["useCallback"])(function(e) {
                var c = (null === e || void 0 === e ? void 0 : e.errMsg) || "绘制海报失败";
                Object(j["showToast"])({
                    title: c,
                    icon: "none"
                }), b(!1);
            }, []), v = Object(g["useCallback"])(function(e) {
                Object(j["hideLoading"])(), b(!1), p(e.tempFilePath), V(!0);
            }, []), D = Object(g["useCallback"])(function() {
                O ? V(!0) : (Object(j["showLoading"])({
                    title: "加载中",
                    mask: !0
                }), h["k"].downloadImage({
                    imageHref: c
                }).then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if (0 == e.code) n({
                        width: 750,
                        height: 1334,
                        debug: !1,
                        pixelRatio: 1,
                        backgroundColor: "#fff",
                        images: [ {
                            x: 0,
                            y: 0,
                            width: 750,
                            height: 1334,
                            url: "https://cdn.meizhuan.cn/pic-go/poster-20211115.jpg"
                        }, {
                            x: 251,
                            y: 933,
                            width: 230,
                            height: 230,
                            url: e.imageUrl,
                            zIndex: 1
                        } ]
                    }), b(!0); else {
                        var c = "GoodsBannerDownloadAction.downloadImage：".concat(e.msg);
                        Object(j["showToast"])({
                            title: c,
                            icon: "none"
                        });
                    }
                }));
            }, [ O, c ]);
            return c ? Object(o["jsxs"])(o["Fragment"], {
                children: [ Object(o["jsxs"])(r["View"], {
                    className: "share__wrapper",
                    hoverClass: "hover-class",
                    onClick: D,
                    children: [ Object(o["jsx"])(r["Text"], {
                        className: "icon-font iconfont-circle-share"
                    }), Object(o["jsx"])(r["Text"], {
                        className: "share__wrapper-label",
                        children: "分享好友"
                    }) ]
                }), Object(o["jsx"])(S["a"], {
                    src: O,
                    show: f,
                    onClose: I
                }), d && Object(o["jsx"])(A["a"], {
                    config: s,
                    onCreateFail: T,
                    onCreateSuccess: v
                }) ]
            }) : Object(o["jsxs"])(r["View"], {
                className: "share__wrapper",
                hoverClass: "hover-class",
                children: [ Object(o["jsx"])(r["Text"], {
                    className: "icon-font iconfont-circle-share"
                }), Object(o["jsx"])(r["Text"], {
                    className: "share__wrapper-label",
                    children: "分享好友"
                }) ]
            });
        }, P = function() {
            var e = Object(g["useRef"])(null), c = Object(n["b"])(), t = c.openLogin, s = D(), i = s.activeTabKey, d = Object(l["d"])(function(e) {
                return e.user;
            }), m = d.loginStatus, u = Object(l["d"])(function(e) {
                return e.weapp.mp;
            }), O = u.ddDelayShowQuan, p = Object(g["useState"])(""), w = Object(x["a"])(p, 2), N = w[0], f = w[1], V = Object(g["useState"])(!1), I = Object(x["a"])(V, 2), T = I[0], v = I[1], k = Object(g["useState"])(!1), y = Object(x["a"])(k, 2), _ = y[0], S = y[1], A = Object(g["useState"])(""), P = Object(x["a"])(A, 2), L = P[0], K = P[1], F = Object(g["useCallback"])(function() {
                var c;
                null === (c = e.current) || void 0 === c || c.abort(), e.current = h["g"].getLink({
                    type: 2,
                    needMini: 1
                }), e.current.then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if ("0" === e.code) return f(e.url), void K(e.weappImgUrl);
                    var c = "DDAction.getLink: ".concat(e.msg);
                    Object(j["showToast"])({
                        title: c,
                        icon: "none"
                    });
                }).finally(function() {
                    S(!1), Object(j["stopPullDownRefresh"])();
                });
            }, []), q = Object(g["useCallback"])(function() {
                m ? (S(!0), O ? h["S"].ddDelayShowQuan().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    if (0 !== e.code) if (S(!1), Object(j["stopPullDownRefresh"])(), -10 !== e.code) {
                        var c = "MpUserAction.ddDelayShowQuan: ".concat(e.msg);
                        Object(j["showToast"])({
                            title: c,
                            icon: "none"
                        });
                    } else v(!0); else F();
                }) : F()) : Object(j["stopPullDownRefresh"])();
            }, [ O, F, m ]);
            return Object(g["useEffect"])(function() {
                N || q();
            }, [ q, N ]), Object(j["useDidShow"])(function() {
                N || _ || q();
            }), Object(j["usePullDownRefresh"])(q), i !== a.DIDI ? null : Object(o["jsxs"])(r["View"], {
                className: "didi",
                children: [ Object(o["jsx"])(r["View"], {
                    className: "wm-banner",
                    children: Object(o["jsx"])(r["Image"], {
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/small-20211115.jpg"
                    })
                }), Object(o["jsxs"])(r["View"], {
                    className: "wm-coupon",
                    children: [ Object(o["jsx"])(z, {}), Object(o["jsxs"])(r["View"], {
                        className: "wm-coupon-content",
                        children: [ _ ? Object(o["jsx"])(r["View"], {
                            className: "logo-wrapper",
                            children: Object(o["jsx"])(r["Image"], {
                                className: "qrcode",
                                src: "https://mpstatic.qingting123.com/img/loading-max.gif"
                            })
                        }) : L ? Object(o["jsx"])(r["View"], {
                            className: "logo-wrapper",
                            children: Object(o["jsx"])(r["Image"], {
                                className: "qrcode",
                                src: L,
                                showMenuByLongpress: !0
                            })
                        }) : T ? Object(o["jsx"])(r["View"], {
                            className: "logo-wrapper",
                            children: Object(o["jsx"])(r["Image"], {
                                className: "logo",
                                src: "http://cdn.meizhuan.cn/pic-go/didi-20211218.png"
                            })
                        }) : Object(o["jsx"])(r["View"], {
                            className: "logo-wrapper",
                            children: Object(o["jsx"])(r["View"], {
                                className: "logo"
                            })
                        }), m ? N ? Object(o["jsx"])(r["View"], {
                            className: "btn-wrapper",
                            children: Object(o["jsxs"])(r["Navigator"], {
                                className: "btn",
                                path: N,
                                appId: b["e"].DIDI,
                                target: "miniProgram",
                                children: [ Object(o["jsx"])(r["Text"], {
                                    className: "label",
                                    children: "领券打车"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "tag",
                                    children: "天天8折"
                                }) ]
                            })
                        }) : T ? Object(o["jsx"])(r["View"], {
                            className: "btn-wrapper",
                            children: Object(o["jsxs"])(r["View"], {
                                className: "btn",
                                onClick: function() {
                                    return Object(j["showModal"])({
                                        title: "提示",
                                        content: "新人券生成中…\r\n请1小时后再来领取！",
                                        showCancel: !1
                                    });
                                },
                                children: [ Object(o["jsx"])(r["Text"], {
                                    className: "label",
                                    children: "领券打车"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "tag",
                                    children: "天天8折"
                                }) ]
                            })
                        }) : Object(o["jsx"])(r["View"], {
                            className: "btn-wrapper",
                            children: Object(o["jsxs"])(r["View"], {
                                className: "btn",
                                children: [ Object(o["jsx"])(r["Text"], {
                                    className: "label",
                                    children: "领券打车"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "tag",
                                    children: "天天8折"
                                }) ]
                            })
                        }) : Object(o["jsx"])(r["View"], {
                            className: "btn-wrapper",
                            children: Object(o["jsxs"])(r["View"], {
                                className: "btn",
                                onClick: t,
                                children: [ Object(o["jsx"])(r["Text"], {
                                    className: "label",
                                    children: "领券打车"
                                }), Object(o["jsx"])(r["View"], {
                                    className: "tag",
                                    children: "天天8折"
                                }) ]
                            })
                        }), Object(o["jsx"])(r["View"], {
                            className: "share",
                            children: Object(o["jsx"])(M, {
                                weappImgUrl: L
                            })
                        }) ]
                    }), Object(o["jsx"])(C, {}) ]
                }) ]
            });
        }, L = function() {
            var e = Object(l["d"])(function(e) {
                return e.weapp.mp;
            }), c = e.showDdDc;
            return c ? Object(o["jsx"])(P, {}) : null;
        }, K = t(19), F = t.n(K), q = t(27), R = t(37), U = (t(485), [ {
            key: a.DIDI,
            title: "滴滴",
            background: "#ef671d"
        }, {
            key: a.AMAP,
            title: "高德",
            background: "#4e95ff"
        } ]), B = function() {
            var e = D(), c = e.activeTabKey, t = e.setActiveTab, s = Object(l["d"])(function(e) {
                return e.weapp.mp;
            }), n = s.showDdDc, i = s.showGdDc, j = U.find(function(e) {
                return e.key === c;
            });
            if (!j) return null;
            var d = U.filter(function(e) {
                return !(e.key !== a.DIDI || !n) || !(e.key !== a.AMAP || !i);
            });
            return d.length ? Object(o["jsx"])(R["a"], {
                home: !0,
                color: "#ffffff",
                iconTheme: "white",
                background: j.background,
                renderCenter: Object(o["jsx"])(r["View"], {
                    className: "nav-bar-tabs",
                    children: d.map(function(e) {
                        return Object(o["jsx"])(r["View"], {
                            className: F()("item", {
                                active: c === e.key
                            }),
                            hoverClass: "navigator-hover",
                            onClick: function() {
                                return t(e.key);
                            },
                            children: Object(o["jsx"])(r["Text"], {
                                className: "title",
                                children: e.title
                            })
                        }, e.key);
                    })
                }),
                onHome: q["a"].openHome
            }) : null;
        }, G = function() {
            var e = D(), c = e.activeTabKey, t = Object(l["d"])(function(e) {
                return e.user.agent;
            }), s = t.agentId, n = Object(g["useRef"])({
                imageHref: "",
                shareTitle: ""
            });
            return Object(g["useEffect"])(function() {
                var e = {
                    shareType: 8
                };
                h["P"].fetchByMp(e).then(function(e) {
                    return e.data;
                }).then(function(e) {
                    e.share && (n.current = e.share);
                });
            }, []), Object(j["useShareAppMessage"])(function() {
                var e = "pages/didi/index?tabKey=".concat(c, "&agentId=").concat(s || "");
                if (c === a.AMAP) return {
                    path: e,
                    title: "高德打车，立减10元",
                    imageUrl: "http://cdn.meizhuan.cn/pic-go/share-20211220.png"
                };
                if (c === a.DIDI) {
                    var t = n.current, i = t.imageHref, r = t.shareTitle;
                    return i && r ? {
                        path: e,
                        title: r,
                        imageUrl: i
                    } : {
                        path: e,
                        title: "打车先领券，优惠更省钱！",
                        imageUrl: "http://cdn.meizhuan.cn/pic-go/share-20211115.jpg"
                    };
                }
                return {};
            }), null;
        }, Q = function() {
            return Object(o["jsxs"])(o["Fragment"], {
                children: [ Object(o["jsx"])(B, {}), Object(o["jsx"])(L, {}), Object(o["jsx"])(y, {}), Object(o["jsx"])(G, {}), Object(o["jsx"])(i["a"], {
                    activeKey: "didi"
                }) ]
            });
        }, E = function() {
            return Object(o["jsx"])(n["a"], {
                children: Object(o["jsx"])(k, {
                    children: Object(o["jsx"])(Q, {})
                })
            });
        }, H = E, J = {
            navigationStyle: "custom",
            enablePullDownRefresh: !0,
            enableShareAppMessage: !0,
            navigationBarTitleText: "",
            navigationBarBackgroundColor: "#fff"
        };
        H.enableShareAppMessage = !0;
        Page(Object(s["createPageConfig"])(H, "pages/didi/index", {
            root: {
                cn: []
            }
        }, J || {}));
    }
}, [ [ 685, 0, 1, 2, 3 ] ] ]);